package com.toutoushidao.ssm.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 传入多个Bean转换为同一的Map，如果Bean的值为空，则被忽略
 * @author laodun
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class GameResult implements Serializable {
    private String errorcode;
    private String errormsg;
    private String data;

    public GameResult() {
    }

    public GameResult(String errorcode, String errormsg, String data) {
        this.errorcode = errorcode;
        this.errormsg = errormsg;
        this.data = data;
    }

    public String getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(String errorcode) {
        this.errorcode = errorcode;
    }

    public String getErrormsg() {
        return errormsg;
    }

    public void setErrormsg(String errormsg) {
        this.errormsg = errormsg;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "GameResult{" +
                "errorcode='" + errorcode + '\'' +
                ", errormsg='" + errormsg + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
